package org.accp.pojo;

import java.io.Serializable;
import java.util.List;

public class Register implements Serializable {
    private Integer rid;
    private String disoddid;
    private String rname;
    private String phone;
    private String idnumber;
    private String sex;
    private String medid;
    private String fee;
    private String operid;
    private String retime;
    private String retimeall;
    private String remarks;
    private Integer typeid;
    private Integer cid;
    private List<RegisterType> registerTypes;//拥有的状态
    private List<Hisuser> hisusers;//医生
    private List<Illness> illnesses;//病
    private List<Customer> customers;

    public List<Customer> getCustomers() {
        return customers;
    }

    public void setCustomers(List<Customer> customers) {
        this.customers = customers;
    }

    public List<Hisuser> getHisusers() {
        return hisusers;
    }

    public void setHisusers(List<Hisuser> hisusers) {
        this.hisusers = hisusers;
    }

    public List<Illness> getIllnesses() {
        return illnesses;
    }

    public void setIllnesses(List<Illness> illnesses) {
        this.illnesses = illnesses;
    }

    public List<RegisterType> getRegisterTypes() {
        return registerTypes;
    }

    public void setRegisterTypes(List<RegisterType> registerTypes) {
        this.registerTypes = registerTypes;
    }

    public Integer getRid() {
        return rid;
    }

    public void setRid(Integer rid) {
        this.rid = rid;
    }

    public String getDisoddid() {
        return disoddid;
    }

    public void setDisoddid(String disoddid) {
        this.disoddid = disoddid;
    }

    public String getRname() {
        return rname;
    }

    public void setRname(String rname) {
        this.rname = rname;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getIdnumber() {
        return idnumber;
    }

    public void setIdnumber(String idnumber) {
        this.idnumber = idnumber;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getMedid() {
        return medid;
    }

    public void setMedid(String medid) {
        this.medid = medid;
    }

    public String getFee() {
        return fee;
    }

    public void setFee(String fee) {
        this.fee = fee;
    }

    public String getOperid() {
        return operid;
    }

    public void setOperid(String operid) {
        this.operid = operid;
    }

    public String getRetime() {
        return retime;
    }

    public void setRetime(String retime) {
        this.retime = retime;
    }

    public String getRetimeall() {
        return retimeall;
    }

    public void setRetimeall(String retimeall) {
        this.retimeall = retimeall;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    public Integer getTypeid() {
        return typeid;
    }

    public void setTypeid(Integer typeid) {
        this.typeid = typeid;
    }

    public Integer getCid() {
        return cid;
    }

    public void setCid(Integer cid) {
        this.cid = cid;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Register register = (Register) o;

        if (rid != register.rid) return false;
        if (disoddid != null ? !disoddid.equals(register.disoddid) : register.disoddid != null) return false;
        if (rname != null ? !rname.equals(register.rname) : register.rname != null) return false;
        if (phone != null ? !phone.equals(register.phone) : register.phone != null) return false;
        if (idnumber != null ? !idnumber.equals(register.idnumber) : register.idnumber != null) return false;
        if (sex != null ? !sex.equals(register.sex) : register.sex != null) return false;
        if (medid != null ? !medid.equals(register.medid) : register.medid != null) return false;
        if (fee != null ? !fee.equals(register.fee) : register.fee != null) return false;
        if (operid != null ? !operid.equals(register.operid) : register.operid != null) return false;
        if (retime != null ? !retime.equals(register.retime) : register.retime != null) return false;
        if (retimeall != null ? !retimeall.equals(register.retimeall) : register.retimeall != null) return false;
        if (remarks != null ? !remarks.equals(register.remarks) : register.remarks != null) return false;
        if (typeid != null ? !typeid.equals(register.typeid) : register.typeid != null) return false;
        if (cid != null ? !cid.equals(register.cid) : register.cid != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = rid;
        result = 31 * result + (disoddid != null ? disoddid.hashCode() : 0);
        result = 31 * result + (rname != null ? rname.hashCode() : 0);
        result = 31 * result + (phone != null ? phone.hashCode() : 0);
        result = 31 * result + (idnumber != null ? idnumber.hashCode() : 0);
        result = 31 * result + (sex != null ? sex.hashCode() : 0);
        result = 31 * result + (medid != null ? medid.hashCode() : 0);
        result = 31 * result + (fee != null ? fee.hashCode() : 0);
        result = 31 * result + (operid != null ? operid.hashCode() : 0);
        result = 31 * result + (retime != null ? retime.hashCode() : 0);
        result = 31 * result + (retimeall != null ? retimeall.hashCode() : 0);
        result = 31 * result + (remarks != null ? remarks.hashCode() : 0);
        result = 31 * result + (typeid != null ? typeid.hashCode() : 0);
        result = 31 * result + (cid != null ? cid.hashCode() : 0);
        return result;
    }
}
